package com.quectel.core.module.scheduling.dto;

import com.quectel.core.module.dept.dto.DeptPersonDto;
import com.quectel.core.module.village.dto.VillageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author ryan
 * @email ryan.ran@quectel.com
 * @date 2023/07/27 14:51
 */
@Data
@Schema
public class SchedulingAttendanceMonthDto implements Serializable {

    /**
    * id
    */
    @Schema(description = "id")
    private Long id;

    /**
    * 租户id
    */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
    * 小区id
    */
    @Schema(description = "小区id")
    private Long villageId;

    /**
    * 人员id
    */
    @Schema(description = "人员id")
    private Long personId;

    /**
    * 人员姓名
    */
    @Schema(description = "人员姓名")
    private String personName;

    /**
    * 人员工号
    */
    @Schema(description = "人员工号")
    private String personJobNo;

    /**
    * 月份
    */
    @Schema(description = "月份")
    private Date month;

    /**
    * 应出勤时长
    */
    @Schema(description = "应出勤时长")
    private BigDecimal attendanceHour;

    /**
    * 实际出勤时长
    */
    @Schema(description = "实际出勤时长")
    private BigDecimal realityAttendanceHour;

    /**
    * 请假时长
    */
    @Schema(description = "请假时长")
    private BigDecimal leaveHour;

    /**
    * 出差时长
    */
    @Schema(description = "出差时长")
    private BigDecimal tripHour;

    /**
    * 外出时长
    */
    @Schema(description = "外出时长")
    private BigDecimal outHour;

    /**
    * 加班时长
    */
    @Schema(description = "加班时长")
    private BigDecimal workOvertimeHour;

    /**
    * 迟到计数
    */
    @Schema(description = "迟到计数")
    private Integer lateCount;

    /**
    * 早退计数
    */
    @Schema(description = "早退计数")
    private Integer earlyCount;

    /**
    * 缺卡计数
    */
    @Schema(description = "缺卡计数")
    private Integer lakeCount;

    /**
    * 应出勤天数
    */
    @Schema(description = "应出勤天数")
    private Integer attendanceDay;

    /**
    * 实际出勤天数
    */
    @Schema(description = "实际出勤天数")
    private Integer realityAttendanceDay;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    private Date createTime;

    /************非数据库字段 start ************/
    @Schema(description = "月份")
    private String monthStr;
    @Schema(description = "未出勤天数")
    private Integer unattendedDay;
    @Schema(description = "小区信息")
    private VillageDto village;
    @Schema(description = "人员信息")
    private DeptPersonDto deptPerson;
    /************非数据库字段 end **************/
}
